
package com.besttone.util;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

import org.apache.log4j.Logger;


public class PropertieUtils {
	
	protected static Logger log = Logger.getLogger(PropertieUtils.class);
	private static Properties pro = new Properties();

	static InputStream inStream =  PropertieUtils.class.getClassLoader().getResourceAsStream("sysParameter.properties");
	
	static{
		
			try {
				pro.load(inStream);
			} catch (IOException e) {
				log.error("配置文件sysParameter.properties加载出错！");
				e.printStackTrace();
			}
		
	}

	public static String  getProperty(String msg)  {
		return pro.getProperty(msg);
	}
	
	
}
